package com.slingshot.identitysdk.viewmodel

import android.app.Application
import android.arch.lifecycle.AndroidViewModel
import android.arch.lifecycle.MutableLiveData
import android.graphics.Bitmap
import com.slingshot.identitysdk.common.SlingshotData

/**
 * @author liu shuai
 * 描述：扫描结果ViewModel
 */
class SlingshotViewModel(application: Application) : AndroidViewModel(application) {

    private var slingshotData: MutableLiveData<SlingshotData> = MutableLiveData()

    fun setSlingshotData(data: SlingshotData) {
        slingshotData.postValue(data)
    }

    fun getSlingshotData(): MutableLiveData<SlingshotData> {
        return slingshotData
    }
}